\hypertarget{classbo_1_1Ball}{
\section{bo::Ball Class Reference}
\label{classbo_1_1Ball}\index{bo::Ball@{bo::Ball}}
}
Inheritance diagram for bo::Ball:\begin{figure}[H]
\begin{center}
\leavevmode
\includegraphics[height=4.000000cm]{classbo_1_1Ball}
\end{center}
\end{figure}
\subsection*{Public Member Functions}
\begin{DoxyCompactItemize}
\item 
\hypertarget{classbo_1_1Ball_a2c165384be738a442cb442e0575d94fd}{
virtual void {\bfseries Visualize} ()=0}
\label{classbo_1_1Ball_a2c165384be738a442cb442e0575d94fd}

\item 
\hypertarget{classbo_1_1Ball_a259f2e4b92f01ad615cf87a03470d6c6}{
virtual void {\bfseries SetSprite} (const char $\ast$, const double)=0}
\label{classbo_1_1Ball_a259f2e4b92f01ad615cf87a03470d6c6}

\item 
void \hyperlink{classbo_1_1Ball_a356cdee6e0d62af5b9acbec17c0264f6}{Bounce} (\hyperlink{classbo_1_1Entity}{Entity} $\ast$)
\item 
bool \hyperlink{classbo_1_1Ball_aa7e8e01e63f79423199533ca24e34911}{CollidesWith} (\hyperlink{classbo_1_1Entity}{Entity} $\ast$)
\item 
void \hyperlink{classbo_1_1Ball_afa0ce17197f237a10e959d24e8e26ec0}{SetRadius} (double)
\item 
double \hyperlink{classbo_1_1Ball_a932f2edc7f7cb3d11f6f384b0fb3f249}{GetRadius} ()
\item 
void \hyperlink{classbo_1_1Ball_ac494cf8cfd16a34290db9272b87b97c2}{AdvanceBall} ()
\item 
void \hyperlink{classbo_1_1Ball_a4bd9f1602dca525431f360bc5ecec5c3}{SetDoubleVelocity} (const double xVel, const double yVel)
\item 
double \hyperlink{classbo_1_1Ball_a28cd54acf759154d30f7087e8fc944af}{GetXVelocity} ()
\item 
double \hyperlink{classbo_1_1Ball_aed4e7ebe738c383b7ed5ee694d456f1b}{GetYVelocity} ()
\item 
\hyperlink{classVector2}{Vector2} \hyperlink{classbo_1_1Ball_a0cca6068eced5bf1cf5efb22445a3099}{GetPos} ()
\item 
void \hyperlink{classbo_1_1Ball_af914c324a54e52a7f7e6943ea59a2429}{SetPos} (double, double)
\end{DoxyCompactItemize}


\subsection{Member Function Documentation}
\hypertarget{classbo_1_1Ball_ac494cf8cfd16a34290db9272b87b97c2}{
\index{bo::Ball@{bo::Ball}!AdvanceBall@{AdvanceBall}}
\index{AdvanceBall@{AdvanceBall}!bo::Ball@{bo::Ball}}
\subsubsection[{AdvanceBall}]{\setlength{\rightskip}{0pt plus 5cm}void bo::Ball::AdvanceBall (
\begin{DoxyParamCaption}
{}
\end{DoxyParamCaption}
)}}
\label{classbo_1_1Ball_ac494cf8cfd16a34290db9272b87b97c2}
Advances the ball 1 step, according to its velocity \hypertarget{classbo_1_1Ball_a356cdee6e0d62af5b9acbec17c0264f6}{
\index{bo::Ball@{bo::Ball}!Bounce@{Bounce}}
\index{Bounce@{Bounce}!bo::Ball@{bo::Ball}}
\subsubsection[{Bounce}]{\setlength{\rightskip}{0pt plus 5cm}void bo::Ball::Bounce (
\begin{DoxyParamCaption}
\item[{{\bf Entity} $\ast$}]{ ent}
\end{DoxyParamCaption}
)}}
\label{classbo_1_1Ball_a356cdee6e0d62af5b9acbec17c0264f6}
Makes the ball bounce off another entity and resets the position when they're penetrating \hypertarget{classbo_1_1Ball_aa7e8e01e63f79423199533ca24e34911}{
\index{bo::Ball@{bo::Ball}!CollidesWith@{CollidesWith}}
\index{CollidesWith@{CollidesWith}!bo::Ball@{bo::Ball}}
\subsubsection[{CollidesWith}]{\setlength{\rightskip}{0pt plus 5cm}bool bo::Ball::CollidesWith (
\begin{DoxyParamCaption}
\item[{{\bf Entity} $\ast$}]{ ent}
\end{DoxyParamCaption}
)}}
\label{classbo_1_1Ball_aa7e8e01e63f79423199533ca24e34911}
Returns true if the ball is colliding with the supplied entity \hypertarget{classbo_1_1Ball_a0cca6068eced5bf1cf5efb22445a3099}{
\index{bo::Ball@{bo::Ball}!GetPos@{GetPos}}
\index{GetPos@{GetPos}!bo::Ball@{bo::Ball}}
\subsubsection[{GetPos}]{\setlength{\rightskip}{0pt plus 5cm}{\bf Vector2} bo::Ball::GetPos (
\begin{DoxyParamCaption}
{}
\end{DoxyParamCaption}
)\hspace{0.3cm}{\ttfamily  \mbox{[}virtual\mbox{]}}}}
\label{classbo_1_1Ball_a0cca6068eced5bf1cf5efb22445a3099}
Returns the position of the ball 

Implements \hyperlink{classbo_1_1Entity}{bo::Entity}.

\hypertarget{classbo_1_1Ball_a932f2edc7f7cb3d11f6f384b0fb3f249}{
\index{bo::Ball@{bo::Ball}!GetRadius@{GetRadius}}
\index{GetRadius@{GetRadius}!bo::Ball@{bo::Ball}}
\subsubsection[{GetRadius}]{\setlength{\rightskip}{0pt plus 5cm}double bo::Ball::GetRadius (
\begin{DoxyParamCaption}
{}
\end{DoxyParamCaption}
)\hspace{0.3cm}{\ttfamily  \mbox{[}virtual\mbox{]}}}}
\label{classbo_1_1Ball_a932f2edc7f7cb3d11f6f384b0fb3f249}
Returns the radius of the ball 

Implements \hyperlink{classbo_1_1Entity}{bo::Entity}.

\hypertarget{classbo_1_1Ball_a28cd54acf759154d30f7087e8fc944af}{
\index{bo::Ball@{bo::Ball}!GetXVelocity@{GetXVelocity}}
\index{GetXVelocity@{GetXVelocity}!bo::Ball@{bo::Ball}}
\subsubsection[{GetXVelocity}]{\setlength{\rightskip}{0pt plus 5cm}double bo::Ball::GetXVelocity (
\begin{DoxyParamCaption}
{}
\end{DoxyParamCaption}
)}}
\label{classbo_1_1Ball_a28cd54acf759154d30f7087e8fc944af}
Returns X component of velocity \hypertarget{classbo_1_1Ball_aed4e7ebe738c383b7ed5ee694d456f1b}{
\index{bo::Ball@{bo::Ball}!GetYVelocity@{GetYVelocity}}
\index{GetYVelocity@{GetYVelocity}!bo::Ball@{bo::Ball}}
\subsubsection[{GetYVelocity}]{\setlength{\rightskip}{0pt plus 5cm}double bo::Ball::GetYVelocity (
\begin{DoxyParamCaption}
{}
\end{DoxyParamCaption}
)}}
\label{classbo_1_1Ball_aed4e7ebe738c383b7ed5ee694d456f1b}
Returns Y component of velocity \hypertarget{classbo_1_1Ball_a4bd9f1602dca525431f360bc5ecec5c3}{
\index{bo::Ball@{bo::Ball}!SetDoubleVelocity@{SetDoubleVelocity}}
\index{SetDoubleVelocity@{SetDoubleVelocity}!bo::Ball@{bo::Ball}}
\subsubsection[{SetDoubleVelocity}]{\setlength{\rightskip}{0pt plus 5cm}void bo::Ball::SetDoubleVelocity (
\begin{DoxyParamCaption}
\item[{const double}]{ xVel, }
\item[{const double}]{ yVel}
\end{DoxyParamCaption}
)\hspace{0.3cm}{\ttfamily  \mbox{[}virtual\mbox{]}}}}
\label{classbo_1_1Ball_a4bd9f1602dca525431f360bc5ecec5c3}
Sets the initial velocity 

Reimplemented from \hyperlink{classbo_1_1MovableEntity}{bo::MovableEntity}.

\hypertarget{classbo_1_1Ball_af914c324a54e52a7f7e6943ea59a2429}{
\index{bo::Ball@{bo::Ball}!SetPos@{SetPos}}
\index{SetPos@{SetPos}!bo::Ball@{bo::Ball}}
\subsubsection[{SetPos}]{\setlength{\rightskip}{0pt plus 5cm}void bo::Ball::SetPos (
\begin{DoxyParamCaption}
\item[{double}]{ xPos, }
\item[{double}]{ yPos}
\end{DoxyParamCaption}
)\hspace{0.3cm}{\ttfamily  \mbox{[}virtual\mbox{]}}}}
\label{classbo_1_1Ball_af914c324a54e52a7f7e6943ea59a2429}
Sets the position of the ball 

Implements \hyperlink{classbo_1_1Entity}{bo::Entity}.

\hypertarget{classbo_1_1Ball_afa0ce17197f237a10e959d24e8e26ec0}{
\index{bo::Ball@{bo::Ball}!SetRadius@{SetRadius}}
\index{SetRadius@{SetRadius}!bo::Ball@{bo::Ball}}
\subsubsection[{SetRadius}]{\setlength{\rightskip}{0pt plus 5cm}void bo::Ball::SetRadius (
\begin{DoxyParamCaption}
\item[{double}]{ rad}
\end{DoxyParamCaption}
)}}
\label{classbo_1_1Ball_afa0ce17197f237a10e959d24e8e26ec0}
Sets the radius of the ball 

The documentation for this class was generated from the following files:\begin{DoxyCompactItemize}
\item 
Ball.h\item 
Ball.cpp\end{DoxyCompactItemize}
